package com.bite.system.test;

import com.bite.common.redis.service.RedisService;
import com.bite.system.Domain.entity.SysUser;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class test1 {

    @Autowired
    RedisService redisService;

    @Test
    public void test1(){
        SysUser user = new SysUser();
        user.setUserAccount("aaa");
        redisService.setCacheObject("u", user);
        SysUser u = redisService.getCacheObject("u", SysUser.class);
        System.out.println(u.toString());
    }
}
